package com.cet.designpatterns.factory.factorymethod.lxf;

public interface NumberFactory {

    Number parse(String s);

    // 获取工厂实例:
    static NumberFactory getFactory() {
        return impl;
    }

    static NumberFactory impl = new NumberFactoryImpl();
}
